package test;

import java.util.List;

import bean.library;
import bean.student;
import sql.sqlConnect;
import dao.studentDao;
import dao.libraryDao;

public class Demo {

	public static void main(String[] args) throws Exception {
		sqlConnect sqlconn = new sqlConnect();
		studentDao studentDAO = new studentDao();
		libraryDao libraryDAO = new libraryDao();
		/*student student = new student();
		student.setName("何静");
		student.setStudentNum("2220164542");
		student.setProfession("日语");
		student.setSex(0);
		student.setGrade(1);
		student.setUsername("名为欧盟");
		student.setPassword("442017");
		sqlconn.insertStudent(student);*/
		
		/*List<student> studentList = studentDAO.selectAllStudent();
		System.out.println(studentList);*/
		
		List<library> libraryList = libraryDAO.selectAllLibrary();
		System.out.println(libraryList);
	}
}
